package code.main.controller.event
{
	import flash.events.Event;
	import flash.events.EventDispatcher;

	/**
	 * 事件控制器
	 * @author YY
	 * 
	 */
	public class EventManager extends EventDispatcher
	{
		
		private static var _instance:EventManager;
		public function EventManager(parm:XX)
		{
		}
		
		/**
		 *获取单例 
		 * @return 
		 * 
		 */
		public static function getInstance():EventManager {
			if(!_instance) {
				_instance = new EventManager(new XX());
			}
			return _instance;
		}
		
		/**
		 *释放资源 
		 * 
		 */
		public function  dispose():void {
			
		}
		
		/**
		 *发布事件 
		 * @param event
		 * 
		 */
		public function dispatcher(event:Event):void {
			this.dispatchEvent(event);
		}
	}
}

class XX {}